﻿Jxstar.currentPage = function() {
	var config = {param:{},initpage:function(page, define){},eventcfg:{}};

	var auditData = Jxstar.findComboData('audit');

	var cols = [
	{col:{header:'记录状态', width:87, sortable:true, align:'center',
		editable:false,
		editor:new Ext.form.ComboBox({
			store: new Ext.data.SimpleStore({
				fields:['value','text'],
				data: auditData
			}),
			emptyText: jx.star.select,
			mode: 'local',
			triggerAction: 'all',
			valueField: 'value',
			displayField: 'text',
			editable:false,
			value: auditData[0][0]
		}),
		renderer:function(value){
			for (var i = 0; i < auditData.length; i++) {
				if (auditData[i][0] == value)
					return auditData[i][1];
			}
		}}, field:{name:'project_designchg__auditing',type:'string'}},
	{col:{header:'合同编号', width:100, sortable:true}, field:{name:'project_designchg__contract_code',type:'string'}},
	{col:{header:'合同名称', width:197, sortable:true}, field:{name:'project_designchg__contract_name',type:'string'}},
	{col:{header:'项目编码', width:100, sortable:true}, field:{name:'project_designchg__project_code',type:'string'}},
	{col:{header:'项目名称', width:237, sortable:true}, field:{name:'project_designchg__project_name',type:'string'}},
	{col:{header:'合同金额(万元)', width:108, sortable:true, renderer:JxUtil.formatNumber(2)}, field:{name:'project_designchg__contract_money',type:'float'}},
	{col:{header:'施工位置', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__constr_location',type:'string'}},
	{col:{header:'变更内容', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__constr_content',type:'string'}},
	{col:{header:'累计变更金额(万元)', width:100, sortable:true, renderer:JxUtil.formatNumber(2)}, field:{name:'project_designchg__money_allchg',type:'float'}},
	{col:{header:'变更金额(万元)', width:100, sortable:true, renderer:JxUtil.formatNumber(2)}, field:{name:'project_designchg__money_chg',type:'float'}},
	{col:{header:'申请日期', width:100, sortable:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'project_designchg__apply_date',type:'date'}},
	{col:{header:'申请人', width:100, sortable:true}, field:{name:'project_designchg__apply_user',type:'string'}},
	{col:{header:'申请部门', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__dept_name',type:'string'}},
	{col:{header:'实施日期', width:100, sortable:true, hidden:true, renderer:function(value) {
			return value ? value.format('Y-m-d') : '';
		}}, field:{name:'project_designchg__practice_date',type:'date'}},
	{col:{header:'主键', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__designchg_id',type:'string'}},
	{col:{header:'部门ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__dept_id',type:'string'}},
	{col:{header:'项目ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__project_id',type:'string'}},
	{col:{header:'申请人ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__apply_userid',type:'string'}},
	{col:{header:'合同ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__contract_id',type:'string'}},
	{col:{header:'施工单位', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__provider_name',type:'string'}},
	{col:{header:'施工单位ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__provider_id',type:'string'}},
	{col:{header:'项目负责人', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__project_user',type:'string'}},
	{col:{header:'施工监理', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__super_user',type:'string'}},
	{col:{header:'项目负责人ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__project_userid',type:'string'}},
	{col:{header:'施工监理ID', width:100, sortable:true, hidden:true}, field:{name:'project_designchg__super_userid',type:'string'}}
	];
	
	config.param = {
		cols: cols,
		sorts: null,
		hasQuery: '1',
		isedit: '0',
		isshow: '1',
		funid: 'project_designchg'
	};
	
	
		
	return new Jxstar.GridNode(config);
}